<template>
  <Suspense>
    <router-view></router-view>
  </Suspense>
</template>

<script setup lang="ts">
import { MultAPIListener } from '@/ipc-event-names/mult'
import { useRouter } from 'vue-router'

const router = useRouter();

/**
 * 跳转到其他页面
 */
function toView(path: string) {
    router.push(path);
};

window[MultAPIListener].toView(toView);
</script>

<style scoped lang="less">
.msg {
  color: red;
}
</style>
